﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class SanPhamDto
    {
        #region ThuocTinh
        private int m_ID;
        private int m_IDLoai;
        private String m_TenSanPham;
        private String m_Hinh;
        private int m_DonGia;
        private DateTime m_NgayNhap;
        private int m_SoLuongCon;
        private int m_SoLuongDaBan;
        private int m_IDNhaSanXuat;
        private int m_DiemBinhChon;
        private int m_IDGiamGia;
        private int m_IDKhuyenMai;
        private int m_Solandanhgia;

        #endregion ThuocTinh

        #region PhuongThuc
        /// <summary>
        /// Lấy/Gán ID
        /// </summary>
        public int ID
        {
            get { return this.m_ID; }
            set { this.m_ID = value; }
        }
        /// <summary>
        /// Lấy/Gán IDLoai
        /// </summary>
        public int IDLoai
        {
            get { return this.m_IDLoai; }
            set { this.m_IDLoai = value; }
        }

        /// <summary>
        /// Lấy/Gán Tên Sản Phẩm
        /// </summary>
        public String TenSanPham
        {
            get { return this.m_TenSanPham; }
            set { this.m_TenSanPham = value; }
        }

        /// <summary>
        /// Lấy/Gán Link HÌnh
        /// </summary>
        public String Hinh
        {
            get { return this.m_Hinh; }
            set { this.m_Hinh = value; }
        }
        /// <summary>
        /// Lấy/Gán Đơn Giá
        /// </summary>
        public int DonGia
        {
            get { return this.m_DonGia; }
            set { this.m_DonGia = value; }
        }
        /// <summary>
        /// Lấy/Gán Ngày Nhập Hàng
        /// </summary>
        public DateTime NgayNhap
        {
            get { return this.m_NgayNhap; }
            set { this.m_NgayNhap = value; }
        }

        /// <summary>
        /// Lấy/Gán Số Lượng Còn
        /// </summary>
        public int SoLuongCon
        {
            get { return this.m_SoLuongCon; }
            set { this.m_SoLuongCon = value; }
        }

        /// <summary>
        /// Lấy/Gán Số Lượng Đã Bán
        /// </summary>
        public int SoLuongDaBan
        {
            get { return this.m_SoLuongDaBan; }
            set { this.m_SoLuongDaBan = value; }
        }

        /// <summary>
        /// Lấy/Gán ID Nhà sản xuất
        /// </summary>
        public int IDNhaSanXuat
        {
            get { return this.m_IDNhaSanXuat; }
            set { this.m_IDNhaSanXuat = value; }
        }

        /// <summary>
        /// Lấy/Gán Điểm Bình chọn
        /// </summary>
        public int DiemBinhChon
        {
            get { return this.m_DiemBinhChon; }
            set { this.m_DiemBinhChon = value; }
        }

        /// <summary>
        /// Lấy/Gán IDGiamGia
        /// </summary>
        public int IDGiamGia
        {
            get { return this.m_IDGiamGia; }
            set { this.m_IDGiamGia = value; }
        }

        /// <summary>
        /// Lấy/Gán IDKhuyenMai
        /// </summary>
        public int IDKhuyenMai
        {
            get { return this.m_IDKhuyenMai; }
            set { this.m_IDKhuyenMai = value; }
        }

        public int Solandanhgia
        {
            get { return m_Solandanhgia; }
            set { m_Solandanhgia = value; }
        }
        #endregion PhuongThuc

        public SanPhamDto()
        {
            m_Hinh = "ItemImages";
            m_NgayNhap = DateTime.Today;
            m_SoLuongCon = 0;
            m_SoLuongDaBan = 0;
            m_DiemBinhChon = 0;
            m_IDGiamGia = 1;
            m_IDKhuyenMai = 1;
            m_Solandanhgia = 0;
        }
    }
}
